package chixing.day09.work;

public class ProductTest {
    public static void main(String[] args) {
        Product[] products = new Product[4];
     products[0] = new ClothingProduct("P001", "T-shirt", 20.0);
     products[1] = new ElectronicProduct("E001", "Laptop", 1500.0);
     products[2] = new ClothingProduct("P002", "Jeans", 80.0);
     products[3] = new ElectronicProduct("E002", "Smartphone", 800.0);
     System.out.println("Total price: " + ProductUtils.getSumPrice(products));

    }
}
